FROM registry.cn-hangzhou.aliyuncs.com/shortlog/rust-alpine:187 AS builder
WORKDIR /project
COPY . .
RUN cargo build --release

FROM registry.cn-hangzhou.aliyuncs.com/shortlog/alpcn:3.22
WORKDIR /app
COPY --from=builder /project/target/release/static-file-service server
EXPOSE 80
CMD ["./server"]